﻿<%@ Page Title="" Language="C#" MasterPageFile="~/App_MasterPages/layout.Master" AutoEventWireup="true" CodeBehind="OnlineReservationPage.aspx.cs" Inherits="blackhouse.StareKino.Web.OnlineReservationPage" %>

<%@ Register Src="~/Modules/CurrencyLiteral.ascx" TagName="CurrencyLiteral" TagPrefix="blackhouse" %>
<%@ Register Assembly="blackhouse.Payments" Namespace="blackhouse.Payments.Modules" TagPrefix="blackhouse" %>
<%@ Import Namespace="blackhouse.Translator.Web" %>
<%@ Register Assembly="blackhouse.Web.Controls" Namespace="blackhouse.Web.Controls.Validators" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="leftContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
    <div id="reservationHeader" class="topBlueHeader doubleLine">
        <div class="hgroup">
            <h1>
                <asp:Literal runat="server" ID="ltlReservationOnline" Text="<%$Resources:Reservation,reservationOnline %>" />
                <asp:Literal runat="server" ID="ltlAlternativeTitle" Visible="false" /></h1>
            <asp:Literal runat="server" ID="ltlSubTitle" Visible="false" />
        </div>
        <asp:PlaceHolder runat="server" ID="phReservationCrumbs" Visible="false">
            <ul id="reservationSteps">
                <li<%=(this.ActivePage==1)?" class=\"active\"":"" %>><span>1</span><%=GetGlobalResourceObject("Reservation", "reservationM1")%></li>
                <li<%=(this.ActivePage==2)?" class=\"active\"":"" %>><span>2</span><%=GetGlobalResourceObject("Reservation", "reservationM2")%></li>
                <li<%=(this.ActivePage==3)?" class=\"active\"":"" %>><span>3</span><%=GetGlobalResourceObject("Reservation", "reservationM3")%>
                </li>
            </ul>
        </asp:PlaceHolder>
        <div class="cleaner"></div>

        <asp:Panel runat="server" CssClass="warningMessage" Visible="false" ID="pnlNoFree">
            <%=GetGlobalResourceObject("Apartments", "apartsS1")%>
        </asp:Panel>
    </div>
    <section id="reservationProgress">
        <asp:MultiView runat="server" ID="mvView" ActiveViewIndex="0">
            <asp:View runat="server" ID="vUnavalible">
                <h2><%=GetGlobalResourceObject("Reservation","reservationUnavalible") %></h2>
                <%=GetGlobalResourceObject("Reservation","reservationUnavalibleContent") %>
            </asp:View>
            <asp:View runat="server" ID="vReservationPreInfo">
                <p class="head-intro"><%=this.GetFormattedResource("Reservation", "reservationH8") %></p>
                <p>
                    <img src="/fbdi/SiteImages/960x1000/promo-breakfast.jpg" class="breakfastImg" />
                    <%=this.GetFormattedResource("Reservation", "reservationS13") %><br />
                    <%=this.GetFormattedResource("Reservation", "reservationS14") %>: <blackhouse:CurrencyLiteral runat="server" ID="ltlBreakfastOneValue" Precision="2" DisableChangeCurrency="true" />/osobę
                </p>
                <p>
                    <%=this.GetGlobalResourceObject("Reservation", "reservationS17") %>: <b>
                        <blackhouse:CurrencyLiteral runat="server" ID="ltlBreakfastsValue" Precision="2" DisableChangeCurrency="true" />
                    </b>
                </p>
                <div class="cleared"></div>
                <hr />
                <div class="reservationButtons">
                    <asp:HyperLink runat="server" ID="lnkToInformationWithoutBreakfasts" Text="<%$ Resources:Reservation, reservationS15 %>"></asp:HyperLink>
                    <asp:HyperLink runat="server" ID="lnkToInformationWithBreakfasts" CssClass="blueButton" Text="<%$ Resources:Reservation, reservationS16 %>"></asp:HyperLink>
                </div>
            </asp:View>
            <asp:View runat="server" ID="vReservationInfo">
                <h5><%=GetGlobalResourceObject("Reservation","thankBooking") %></h5>
                <p>
                    <%=GetGlobalResourceObject("Reservation","thankBookingLid") %>
                </p>
                <div class="reservationTabLine">
                    <div class="infoBlock" id="apartmentInfo">
                        <div class="infoHead">
                            <h3><%=GetGlobalResourceObject("Reservation", "reservationH1")%></h3>
                        </div>
                        <div class="infoContent">
                            <asp:Image runat="server" ID="imgApartmentPhoto" />
                            <p>
                                <asp:Literal runat="server" ID="ltlApartmentsCount" Visible="false" /><asp:Literal runat="server" ID="lblApartmentName" /><br />
                                <%=GetGlobalResourceObject("Reservation", "reservationS1")%>
                                <asp:Literal runat="server" ID="lblNumberPeoples" />
                                <asp:Literal runat="server" ID="lblPeoples" />
                            </p>
                            <div class="cleaner"></div>
                        </div>
                    </div>
                    <div class="infoBlock" id="periodInfo">
                        <div class="infoHead">
                            <h3><%=GetGlobalResourceObject("Reservation", "reservationH2")%></h3>
                        </div>
                        <div class="infoContent">
                            <asp:Literal runat="server" ID="ltlPeriod" />
                            <br />
                            <%=GetGlobalResourceObject("Reservation", "reservationS2")%>
                            <asp:Literal runat="server" ID="ltlLengthOfStay" />
                            <div class="cleaner"></div>
                        </div>
                    </div>
                </div>
                <div class="reservationTabLine">
                    <div class="infoBlock" id="reservationValue">
                        <div class="infoHead">
                            <h3><%=GetGlobalResourceObject("Reservation", "reservationH3")%></h3>
                        </div>
                        <div class="infoContent">
                            <blackhouse:CurrencyLiteral runat="server" ID="ltlReservationValue" Precision="2" DisableChangeCurrency="true" />
                            <asp:PlaceHolder runat="server" ID="phComplexReservationValue" Visible="false">
                                <span style="font-weight: normal"><%=GetGlobalResourceObject("Reservation", "reservationH1")%>:
                                    <blackhouse:CurrencyLiteral runat="server" ID="ltlComplexApartmentReservationValue" Precision="2" DisableChangeCurrency="true" />
                                    <br />
                                    <asp:Repeater runat="server" ID="rptInformationServices">
                                        <ItemTemplate>
                                            <%#Eval("Key") %>: +<blackhouse:CurrencyLiteral runat="server" Value='<%#Eval("Value") %>' ID="ltlServiceValue" Precision="2" DisableChangeCurrency="true" />
                                            <br/>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                    <%--<%=GetGlobalResourceObject("Reservation", "reservationS3")%>: +<blackhouse:CurrencyLiteral runat="server" ID="ltlComplexExtraBedServiceValue" Precision="2" DisableChangeCurrency="true" />
                                    <br />--%>
                                </span>
                                <%=GetGlobalResourceObject("Reservation", "reservationS4")%>:
                                <blackhouse:CurrencyLiteral runat="server" ID="ltlComplexReservationValue" Precision="2" DisableChangeCurrency="true" />
                            </asp:PlaceHolder>
                            <div class="cleaner"></div>
                        </div>
                    </div>

                    <asp:Panel runat="server" CssClass="infoBlock" ID="reservationRabat" ClientIDMode="Static">
                        <div class="infoHead">
                            <h3><%=GetGlobalResourceObject("Reservation", "reservationS5")%></h3>
                        </div>
                        <div class="infoContent">
                            <h5><%=GetGlobalResourceObject("Reservation", "reservationS6")%>: <span>
                                <asp:Literal runat="server" ID="ltlTotalRabat" Text="" /></span></h5>
                            <asp:Label runat="server" ID="ltlTotalRabatWarning" CssClass="rabatWarning" Visible="false" Text="<%$ Resources:Reservation, reservationS10 %>" />
                            <asp:Repeater runat="server" ID="rptRabats" Visible="false">
                                <HeaderTemplate>
                                    <table>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr>
                                        <td><%#Eval("RabatValue","{0:F0}") %>%</td>
                                        <td>(<%#Eval("RabatName") %>)</td>
                                    </tr>
                                </ItemTemplate>
                                <FooterTemplate></table></FooterTemplate>
                            </asp:Repeater>
                            <div class="cleaner"></div>
                        </div>
                    </asp:Panel>
                </div>

                <div class="infoBlock" id="reservationValueRabat">
                    <div class="infoHead">
                        <h3><%=GetGlobalResourceObject("Reservation", "reservationH4")%></h3>
                    </div>
                    <div class="infoContent">
                        <blackhouse:CurrencyLiteral runat="server" ID="ltlReservationFinalValue" Precision="2" DisableChangeCurrency="true" />
                        <em><%=GetGlobalResourceObject("Reservation", "reservationS8")%></em>
                        <div class="cleaner"></div>
                    </div>
                </div>
                <div class="reservationGoNextWrapper">
                    <asp:LinkButton runat="server" ID="lnkGotoContact" CssClass="blueButton reservationGoNext" OnClick="lnkGotoContact_Click"></asp:LinkButton>
                </div>
            </asp:View>
            <asp:View ID="vReservationClient" runat="server">
                <%if (ConfigurationManager.AppSettings["DisableAnalytics"] != "true") {  %>
                <!-- Google Code for Rezerwacja Conversion Page -->
                <script type="text/javascript">
                    /* <![CDATA[ */
                    var google_conversion_id = 984957080;
                    var google_conversion_language = "pl";
                    var google_conversion_format = "3";
                    var google_conversion_color = "ffffff";
                    var google_conversion_label = "6Y4lCOiMhAcQmIHV1QM";
                    var google_conversion_value = 0;
                    var google_remarketing_only = false;
                    /* ]]> */
                </script>
                <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
                </script>
                <noscript>
                    <div style="display: inline;">
                        <img height="1" width="1" style="border-style: none;" alt="" src="//www.googleadservices.com/pagead/conversion/984957080/?value=0&amp;label=6Y4lCOiMhAcQmIHV1QM&amp;guid=ON&amp;script=0" />
                    </div>
                </noscript>

                <%} %>

                <div id="reservationProgressClient">
                    <div id="reservationProgressClient1">
                        <h2><%=GetGlobalResourceObject("Reservation","neccContactDetails") %></h2>

                        <div class="afterTitleContent">
                            <p><%=GetGlobalResourceObject("Reservation","neccContactDetails2") %></p>
                            <hr />
                            <table id="reservationClientInput">
                                <tr>
                                    <td class="title">
                                        <asp:Label ID="Label1" runat="server" AssociatedControlID="txtFirstName"><%=GetGlobalResourceObject("Reservation","firstName") %>:</asp:Label></td>
                                    <td class="input">
                                        <asp:TextBox runat="server" ID="txtFirstName" Text="<%$Resources:Reservation,typeFirstName %>" CssClass="clear-default"></asp:TextBox>
                                        <cc1:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFirstName" CssClass="rpc-error" ErrorMessage="<%$Resources:Reservation,firstNameError %>"></cc1:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="title">
                                        <asp:Label ID="Label2" runat="server" AssociatedControlID="txtLastName"><%=GetGlobalResourceObject("Reservation","lastName") %>:</asp:Label></td>
                                    <td class="input">
                                        <asp:TextBox runat="server" ID="txtLastName" Text="<%$Resources:Reservation,typeLastName %>" CssClass="clear-default"></asp:TextBox>
                                        <cc1:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtLastName" ErrorMessage="<%$Resources:Reservation,lastNameError %>"></cc1:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="title">
                                        <asp:Label ID="Label3" runat="server" AssociatedControlID="txtPhone"><%=GetGlobalResourceObject("Reservation","phone") %>:</asp:Label></td>
                                    <td class="input">
                                        <asp:TextBox runat="server" ID="txtPhone" Text="<%$Resources:Reservation,typePhone %>" CssClass="clear-default"></asp:TextBox>
                                        <cc1:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPhone" ErrorMessage="<%$Resources:Reservation,phoneError %>"></cc1:RequiredFieldValidator>
                                        <cc1:RegularExpresionValidator ID="RegularExpresionValidator1" runat="server" ControlToValidate="txtPhone" ErrorMessage="<%$Resources:Reservation,phoneErrorValid %>" PredefinedValidator="Phone"></cc1:RegularExpresionValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="title">
                                        <asp:Label ID="Label4" runat="server" AssociatedControlID="txtEMail">E-mail:</asp:Label></td>
                                    <td class="input">
                                        <asp:TextBox runat="server" ID="txtEMail" Text="<%$Resources:Reservation,typeEmail %>" CssClass="clear-default"></asp:TextBox>
                                        <cc1:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtEMail" ErrorMessage="<%$Resources:Reservation,emailError %>"></cc1:RequiredFieldValidator>
                                        <cc1:RegularExpresionValidator ID="RegularExpresionValidator2" runat="server" ControlToValidate="txtEMail" ErrorMessage="<%$Resources:Reservation,emailErrorValid %>" PredefinedValidator="Email"></cc1:RegularExpresionValidator>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <div id="reservationProgressClient2">
                        <h2><%=GetGlobalResourceObject("Reservation","informationToBook") %></h2>
                        <div class="afterTitleContent">
                            <p><%=GetGlobalResourceObject("Reservation","informationToBook2") %></p>
                            <div id="reservationAdditionalComments">
                                <asp:Label ID="Label5" runat="server" AssociatedControlID="txtOverview"><%=GetGlobalResourceObject("Reservation","additionalComments") %></asp:Label>
                                <asp:TextBox TextMode="MultiLine" CssClass="addinfo-text" runat="server" ID="txtOverview"></asp:TextBox>
                            </div>
                            <div id="reservationArrivalDate">
                                <asp:Label ID="Label6" runat="server" AssociatedControlID="txtArrivalTime"><%=GetGlobalResourceObject("Reservation","arrivalTime") %>:</asp:Label>
                                <asp:TextBox runat="server" ID="txtArrivalTime" CssClass="rpc-arrival" ClientIDMode="Static">14:00</asp:TextBox>
                                <cc1:RegularExpresionValidator ID="RegularExpresionValidator3" runat="server" ControlToValidate="txtArrivalTime" ErrorMessage="<%$Resources:Reservation,arrivalTimeError %>" ValidationExpression="^(([0-9])|([0-1][0-9])|([2][0-3])):(([0-9])|([0-5][0-9]))$"></cc1:RegularExpresionValidator>
                                <div class="cleaner"></div>
                                <div id="nextDay">
                                    <asp:Label runat="server" ID="lblNextDayArrival" ClientIDMode="Static"></asp:Label>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="cleaner"></div>
                    <div id="reservationProgresssSpinBottom">
                        <div class="afterTitleContent" id="reservationPrivatePolicy">
                            <h2><%=GetGlobalResourceObject("Reservation","privatePolicy") %></h2>
                            <p>
                                <%=GetGlobalResourceObject("Reservation","privatePolicy1") %>
                                <br />
                                <%=GetGlobalResourceObject("Reservation","privatePolicy2") %>
                            </p>
                            <asp:HyperLink runat="server" ID="lnkPrivatePolicy" Text="<%$Resources:Reservation,privatePolicyLink %>" />
                        </div>
                        <div class="prog-reservation-bottom">
                            <asp:LinkButton runat="server" ID="lnkContactComplete" OnClick="lnkContactComplete_Click" CssClass="blueButton" />

                        </div>
                        <div class="cleaner"></div>
                    </div>
                </div>
            </asp:View>
            <asp:View ID="vPayment" runat="server">
                <div id="reservationProgressPayment">
                    <h2><%=GetGlobalResourceObject("Reservation","selectPaymentType") %></h2>
                    <div class="afterTitleContent">
                        <p><%=GetGlobalResourceObject("Reservation","selectPaymentTypeContent") %></p>
                        <asp:Repeater runat="server" ID="rptPayments" OnItemDataBound="rptPayments_ItemDataBound">
                            <HeaderTemplate>
                                <ul id="reservationPaymentSelect">
                            </HeaderTemplate>
                            <ItemTemplate>
                                <li>
                                    <asp:HiddenField ID="reservationValueWithRabat" runat="server" ClientIDMode="Static" />
                                    <asp:HiddenField ID="rabatPriceValue" runat="server" ClientIDMode="Static" />
                                    <input type="radio" name="payment_type" value="<%#Eval("Key") %>" />
                                    <%--    <div class="payment-type-checkin payment-fullline">
                                <a class="pcheck-check"><%=GetGlobalResourceObject("Aparts","iSelect").ToFirstUpperString() %></a>
                                <span class="pcheck-checkout"><%=GetGlobalResourceObject("Aparts","iSelected").ToFirstUpperString() %>!</span>
                            </div>--%>
                                    <div class="payment-type-content">
                                        <h3><%#Eval("Name") %></h3>
                                        <%#Eval("Description").ToString().ReplaceEx("\r\n","<br />") %>
                                    </div>
                                    <div class="payment-rabat"><%=GetGlobalResourceObject("Reservation","reservationS5") %>: <span class="payment-rabat-value"><%#Eval("ExtraRabat") %>%</span></div>
                                    <div class="cleaner"></div>
                                </li>
                            </ItemTemplate>
                            <FooterTemplate></ul></FooterTemplate>
                        </asp:Repeater>
                    </div>
                    <table id="reservationPaymentSummary">
                        <tr>
                            <td class="title"><%=GetGlobalResourceObject("Reservation","reservationCost") %>:</td>
                            <td class="value">
                                <blackhouse:CurrencyLiteral runat="server" DisableChangeCurrency="true" Precision="2" ID="curReservationCostAbPayment" />
                            </td>
                        </tr>
                        <tr>
                            <td class="title"><%=GetGlobalResourceObject("Reservation","reservationS5") %> <span id="rabat-value">0%</span>:</td>
                            <td class="value" id="paymentSummary-rabatValue">
                                <blackhouse:CurrencyLiteral runat="server" DisableChangeCurrency="true" Precision="2" ID="curRabatValue" Value="0" />
                            </td>
                        </tr>
                        <tr>
                            <td class="title"><%=GetGlobalResourceObject("Reservation","forPay") %>:</td>
                            <td class="value" id="paymentSummary-totalCost">
                                <blackhouse:CurrencyLiteral runat="server" DisableChangeCurrency="true" Precision="2" ID="curTotalReservationCost" />
                            </td>
                        </tr>
                    </table>

                    <asp:LinkButton runat="server" ID="lnkEndReservation" CssClass="blueButton" OnClick="lnkEndReservation_Click" Text="<%$Resources:Reservation,endReservation %>" />

                    <div class="cleaner endPayment"></div>

                </div>
            </asp:View>
            <asp:View ID="vEnd" runat="server">
                <h2><%=GetGlobalResourceObject("Reservation","thankBooking") %></h2>
                <p>
                    <%=GetGlobalResourceObject("Reservation","thankBooking1") %> (<b><asp:Literal runat="server" ID="ltlReservationClientEmail" /></b>)  <%=GetGlobalResourceObject("Reservation","thankBooking2") %>
                    <asp:HyperLink runat="server" ID="lnkReservationStatus" CssClass="khaki" Text="<%$Resources:Reservation,checkStatus %>" />.
                </p>
                <div class="brownContent">
                    <p>
                        <%=GetGlobalResourceObject("Reservation","saveUnderNumber") %> <b>
                            <asp:Literal runat="server" ID="ltlReservationNumber" /></b>.
                    </p>
                </div>

                <%if (ConfigurationManager.AppSettings["DisableAnalytics"] != "true") {  %>

                <!-- Google Code for Koniec rezerwacji Conversion Page -->
                <script type="text/javascript">
                    /* <![CDATA[ */
                    var google_conversion_id = 984957080;
                    var google_conversion_language = "pl";
                    var google_conversion_format = "3";
                    var google_conversion_color = "ffffff";
                    var google_conversion_label = "BLkrCOCAjwcQmIHV1QM";
                    var google_conversion_value = <%=ReservationPriceCalculator.TotalCost.ToString("F2", CultureInfo.GetCultureInfo("en-US")) %>;
                    var google_remarketing_only = false;
                    /* ]]> */
                </script>
                <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
                </script>
                <noscript>
                    <div style="display: inline;">
                        <img height="1" width="1" style="border-style: none;" alt="" src="//www.googleadservices.com/pagead/conversion/984957080/?value=0&amp;label=BLkrCOCAjwcQmIHV1QM&amp;guid=ON&amp;script=0" />
                    </div>
                </noscript>

                <%} %>
            </asp:View>
            <asp:View runat="server" ID="vConfirm">
                <h2><%=GetGlobalResourceObject("Reservation","confirmBooking2") %></h2>
                <%=GetGlobalResourceObject("Reservation","confirmBookingOk") %>
                <asp:HyperLink runat="server" ID="lnkDisplayReservation" CssClass="href-white" Text="<%$Resources:Reservation,confirmBooking4 %>" />
                <asp:Panel runat="server" ID="pnlOnlinePayment" CssClass="reservation-confirm-payment" Visible="false">
                    <h2><%=GetGlobalResourceObject("Reservation","payment") %></h2>
                    <div class="reservation-complete-lid">
                        <p>
                            Jako formę płatności wybrałeś płatność online w systemie PayU.
                        Kliknij w link poniżej - zostaniesz przekierowany na stronę payu.pl,  gdzie będziesz mógł dokonać płatności z wykorzystaniem bankowości internetowej swojego banku,
            lub dokonać płatności kartą kredytową.
                        </p>
                        <p>
                            Listę dostępnych metod płatności wraz z czasem realizacji znajdziesz na stronie: <a href="http://www.payu.pl/dla-sklepow/szeroki-wachlarz-uslug" class="href-white">http://www.payu.pl/dla-sklepow/szeroki-wachlarz-uslug</a>.<br />
                        </p>
                        <div class="prog-reservation-bottom">

                            <asp:HyperLink runat="server" ID="lnkToPayment" ClientIDMode="Static" CssClass="blue-button prb-bnt">Zapłać<br />z PayU</asp:HyperLink>
                            <div class="clear"></div>
                        </div>
                    </div>
                </asp:Panel>
            </asp:View>
            <%--       <asp:View runat="server" ID="vPayU">
                <h2>Za chwilę zostaniesz przekierowany do payu.pl</h2>

                <div class="reservation-complete-lid">
                    <p>
                        Jeżeli nie zostałeś przekierowany, kliknij w przycisk "Przejdź do payu.pl" poniżej
                    </p>
                    <div class="prog-reservation-bottom">
                        </form>
                 <form class="autoredirect-payu" method="post" action="https://www.platnosci.pl/paygw/UTF/NewPayment">
                     <blackhouse:NewPaymentFormFields runat="server" ID="transactionForm" CssClass="blue-button prb-bnt" LinkText="Przejdź do PayU.pl" />
                 </form>
                        <div class="clear"></div>
                    </div>
                </div>
            </asp:View>--%>
            <asp:View runat="server" ID="vStatus">

                <h5><%=GetGlobalResourceObject("Reservation","bookingStatus") %>
                    <asp:Literal runat="server" ID="ltlStatusReservationNumber" /></h5>
                <p>
                    <%=GetGlobalResourceObject("Reservation","importantInformations") %>
                </p>
                <div class="reservationTabLine">
                    <div class="infoBlock" id="apartmentInfo">
                        <div class="infoHead">
                            <h3>
                                <asp:Literal runat="server" ID="lblStatusLpApartmentsCount" Text="<%$Resources:Reservation, reservationH1 %>" />
                                <asp:Literal runat="server" ID="lblStatusMpApartmentsCount" Visible="false" Text="<%$Resources:Reservation, reservationH1s %>" /></h3>
                        </div>
                        <div class="infoContent">
                            <asp:Repeater ID="rptReservationApartments" runat="server" OnItemDataBound="rptReservationApartments_ItemDataBound">
                                <HeaderTemplate>
                                    <div>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Image runat="server" ID="imgStatusApartmentPhoto" />
                                    <p>
                                        <asp:Literal runat="server" ID="ltlStatusApartmentsCount" />
                                        <asp:Literal runat="server" ID="lblStatusApartmentName" />
                                        <br />
                                        Pobyt dla
                                        <asp:Literal runat="server" ID="lblStatusPeoples" />
                                    </p>
                                    <div class="cleaner"></div>
                                </ItemTemplate>
                                <FooterTemplate></div></FooterTemplate>
                            </asp:Repeater>

                        </div>
                    </div>
                    <div class="infoBlock" id="periodInfo">
                        <div class="infoHead">
                            <h3><%=GetGlobalResourceObject("Reservation", "reservationH2")%></h3>
                        </div>
                        <div class="infoContent">
                            <asp:Literal runat="server" ID="ltlStatusPeriod" />
                            <br />
                            <%=GetGlobalResourceObject("Reservation", "reservationS2")%>
                            <asp:Literal runat="server" ID="ltlStatusLengthOfStay" />
                            <div class="cleaner"></div>
                        </div>
                    </div>
                </div>
                <div class="reservationTabLine">
                    <div class="infoBlock" id="reservationValue">
                        <div class="infoHead">
                            <h3><%=GetGlobalResourceObject("Reservation", "reservationH3")%></h3>
                        </div>
                        <div class="infoContent">
                            <blackhouse:CurrencyLiteral runat="server" ID="lblStatusPrice" Precision="2" DisableChangeCurrency="true" />
                            <asp:PlaceHolder runat="server" ID="phComplexStatusValue" Visible="false">
                                <span style="font-weight: normal"><%=GetGlobalResourceObject("Reservation", "reservationH1")%>:
                                    <blackhouse:CurrencyLiteral runat="server" ID="ltlComplexStatusApartmentValue" Precision="2" DisableChangeCurrency="true" />
                                    <br />
                                    <asp:Repeater runat="server" ID="rptStatusAdditionalServices" OnItemDataBound="ItemDataBound_rptComplexStatusAdditionalServices">
                                        <ItemTemplate>
                                            <asp:Literal runat="server" ID="ltlServiceName" />: +<blackhouse:CurrencyLiteral runat="server" ID="ltlAdditionalServiceValue" Precision="2" DisableChangeCurrency="true" /><br />
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </span>
                                <%=GetGlobalResourceObject("Reservation", "reservationS4")%>:
                                <blackhouse:CurrencyLiteral runat="server" ID="ltlComplexStatusReservationValue" Precision="2" DisableChangeCurrency="true" />
                            </asp:PlaceHolder>
                            <asp:PlaceHolder ID="phStatusPaymentType" Visible="false" runat="server">
                                <span class="paymentType"><%=GetGlobalResourceObject("Reservation", "reservationS9")%>: <span>
                                    <asp:Literal runat="server" ID="ltlStatusPaymentType" /></span></span>
                            </asp:PlaceHolder>

                            <div class="cleaner"></div>
                        </div>
                    </div>

                    <asp:Panel runat="server" CssClass="infoBlock" ID="pnlStatusRabat" ClientIDMode="Static">
                        <div class="infoHead">
                            <h3><%=GetGlobalResourceObject("Reservation", "reservationS5")%></h3>
                        </div>
                        <div class="infoContent">
                            <h5><%=GetGlobalResourceObject("Reservation", "reservationS6")%>: <span>
                                <asp:Literal runat="server" ID="ltlStatusTotalRabat" Text="0%" /></span></h5>
                            <asp:Label runat="server" ID="ltlStatusTotalRabatWarning" CssClass="rabatWarning" Visible="false" Text="<%$ Resources:Reservation, reservationS10 %>" />

                            <asp:Repeater runat="server" ID="rptStatusRabats" Visible="false">
                                <HeaderTemplate>
                                    <table>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr>
                                        <td class="reservationStatusRabatValue"><%#Eval("FinalRabatValue","{0:F0}") %>% </td>
                                        <td>(<%#Eval("Rabat.RabatName") %>)</td>
                                    </tr>
                                </ItemTemplate>
                                <FooterTemplate></table></FooterTemplate>
                            </asp:Repeater>
                            <div class="cleaner"></div>
                        </div>
                    </asp:Panel>
                </div>

                <div class="infoBlock" id="reservationValueRabat">
                    <div class="infoHead">
                        <h3><%=GetGlobalResourceObject("Reservation", "reservationH4")%></h3>
                    </div>
                    <div class="infoContent">
                        <blackhouse:CurrencyLiteral runat="server" ID="ltlStatusReservationFinalValue" Precision="2" DisableChangeCurrency="true" />

                        <em><%=GetGlobalResourceObject("Reservation", "reservationS8")%></em>
                        <div class="cleaner"></div>
                    </div>
                </div>
                <div class="reservationGoNextWrapper">
                    <div id="reservationStatusStatus" class="brownContent">
                        <h3>
                            <asp:Literal runat="server" ID="ltlStatusName" /></h3>
                        <p>
                            <asp:Literal runat="server" ID="ltlStatusDescription" />
                        </p>
                        <div class="titled"><%=GetGlobalResourceObject("Reservation","bookingStatus2") %></div>
                    </div>
                </div>
            </asp:View>
        </asp:MultiView>
    </section>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="rightContent" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="pageEditContent" runat="server">
</asp:Content>
